// 运行时配置

// 全局初始化数据配置，用于 Layout 用户信息和权限初始化
// 更多信息见文档：https://umijs.org/docs/api/runtime-config#getinitialstate
export async function getInitialState(): Promise<{ name: string }> {
  return { name: '管理员' };
}

import { Question, SelectLang, Avatar} from "./components";

export const layout = () => {
  return {
    logo: <span>LOgoo</span>,
    menu: {
      locale: false,
    },
    title: '大象机械',
    layout:'mix',
    actionsRender:()=>[<SelectLang></SelectLang>, <Question></Question>],
    avatarProps:{
      render: ()=><Avatar />,
    },
  };
};
